<template>
  <div class="content-container" v-html="agreement.content"></div>
</template>

<script>
  import {ref} from "vue"
  import {getAgreement} from "../../api/setting/agreement"
  import {useRoute} from "vue-router";
  export default {
    name: "AgreementIndex",
    data() {
      const agreement = ref({})
      const route = useRoute()
      const type = route.params.type
      getAgreement({type: type}, res => {
        console.log(res)
        agreement.value = res
      })
      return {
        agreement
      }
    }
  }
</script>

<style lang="scss" scoped>
  .content-container {
    margin: 60px auto 40px;
    background: #f5f5f5;
    min-width: 924px;
  }
</style>
<style>
  body {
    background-color: #f5f5f5!important;
    height: 100%;
  }
</style>
